package site.luojie.business.user.service.remote;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import site.luojie.business.user.service.UserService;
import site.luojie.common.service.UserRemoteService;
import site.luojie.common.vo.ResultVo;

/**
 * @author jie.luo
 * @since 2020/9/28
 */
@Service
public class UserRemoteServiceImpl implements UserRemoteService {

    @Autowired
    private UserService userService;

    @Override
    public ResultVo<Boolean> checkToken(String token) {
        return ResultVo.ok(userService.checkToken(token));
    }
}
